package com.bekdyf;


import cn.hutool.cache.CacheUtil;
import cn.hutool.cache.impl.TimedCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Iterator;
import java.util.concurrent.TimeUnit;

@SpringBootApplication
public class HelloWorldMainApplication {
    private static final TimedCache<String, Integer> PASSWORD_ERROR_MAP = CacheUtil.newTimedCache(TimeUnit.MINUTES.toMillis(20));
    public static void main(String[] args) {
        // Spring应用启动起来
        SpringApplication.run(HelloWorldMainApplication.class,args);
        PASSWORD_ERROR_MAP.put("username",10);


        Iterator iter = PASSWORD_ERROR_MAP.iterator();
        while(iter.hasNext()){
            Object o =  iter.next();
        }
    }
}
